<template>
	<view class="paidDetail">
		<nav-bars backState="1000" :bgColor="navBackground" fontColor="#fff" title="订单详情"></nav-bars>
		<view class="topImg">
			<image :src="`${baseImg}/static/adminShop/detailBack.png`" mode=""></image>
			<!-- time -->
			<view class="time">
				<view class="title">
					<image :src="`${baseImg}/static/adminShop/detailWait.png`" mode=""></image>
					<text v-if="orderdetail.status!=2"> 
						{{status[orderdetail.progress_status]}}
					</text>
					<text v-else>
						申请拒绝
					</text>
				</view>
				<!-- <view class="onlyTime" v-if="orderdetail.order_status == 1">还剩
					<countdown :startTime="startTime" :endTime="enTime" style="display: inline-block;" />自动关闭订单
				</view> -->
			</view>
			<!-- 信息 -->
			<view class="siteinfo" v-if="orderdetail.refund_type==3 && orderdetail.status===1 && orderdetail.progress_status!=2">
				<view class="infoItem">
					<view class="left">
						<view class="call">
							<view class="info">
								请寄回商品
							</view>
							<view class="info">
								请在<text>6天23小时</text>内填写快递单号
							</view>
						</view>
					</view>
				</view>
			</view>
			<view class="siteinfo" v-if="orderdetail.progress_status===2">
				<view class="infoItem">
					<view class="left">
						<view class="call">
							<view class="info">
								商家已退款
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 进度 -->
		<view class="content" :style="'margin-top:'+navHeight+'rpx;'">
			<view class="process" v-if="orderdetail.refund_type==3 && orderdetail.status==1">
				<uni-steps direction="row" active-color="#C3AB7C" :active="steps_status" :options="processList">
				</uni-steps>
			</view>
			<view class="summary" v-if="orderdetail.refund_type==3 && orderdetail.status===1">
				<view class="title">商家已同意退货,请尽早发货</view>
				<view class="describe">
					<view class="back-dot"></view>
					未与商家协商一致，请勿使用到付或平邮，以免商家拒签货物
				</view>
				<view class="describe">
					<view class="back-dot"></view>
					交易的钱款还在系统账户，确保您资金安全
				</view>
				<view class="describe">
					<view class="back-dot"></view>
					请填写真实物流信息，逾期未填写，退货信息将关闭
				</view>
			</view>
			<!-- 商家退货地址 -->
			<view class="logistics" v-if="orderdetail.refund_type==3 && orderdetail.status===1">
				<view class="infoItem">
					<view class="left">
						<image :src="`${baseImg}/static/adminShop/detailAddress.png`" mode=""></image>
						<view class="call">
							<view class="info">
								{{orderdetail.storeInfo.link_name||''}} {{orderdetail.storeInfo.mobile}}
							</view>
							<!-- <view class="address">
								{{orderdetail.storeInfo.province}}{{orderdetail.storeInfo.city}}{{orderdetail.storeInfo.area}}{{orderdetail.storeInfo.address}}
							</view> -->
							<view class="address">
							{{orderdetail.storeInfo.address}}
							</view>
						</view>
					</view>
				</view>
				<view class="logistics-form">
					<view class="uni-list-cell-db list-form">
						<view class="list-cell-title">
							<text v-if="disabled">物流公司</text>
							<text v-else>请选择物流公司</text>
						</view>
						<picker @change="bindPickerChange" :value="express_index" :range="logisticsList" :disabled="disabled">
							<view class="uni-input">{{logisticsList[express_index]}}</view>
						</picker>
						<view class="iconfont icon-more" v-if="!logi_no"></view>
					</view>
					<view class="list-form">
						<view class="list-cell-title">
							<text v-if="disabled">快递单号</text>
							<text v-else>填写快递单号</text>
						</view>
						<input class="uni-input"  :disabled="disabled" placeholder-class="placeholder-input" v-model="logi_no" placeholder="请输入快递单号" />
					</view>
				</view>
			</view>
			<!-- 商品清单 -->
			<view class="shopList">
				<!-- <h3>{{orderdetail.store_name}}<i class="iconfont icon-more"></i></h3> -->
				<h3>商品信息<i class="iconfont icon-more"></i></h3>
				<view class="list" v-for="(items,index) in refundItems" :key="index">
					<view class="item">
						<image :src="items.main_imgurl" mode=""></image>
						<view class="shopInfo">
							<view class="top">
								<view class="tit omit-2">
									{{items.product_title}}
								</view>
								¥ {{items.price}}
							</view>
							<view class="spec">
								<view v-for="(attr_params,index) in items.attr_params" style="display: inline-block;">
									<text v-if="attr_params.attr_name">{{attr_params.attr_value}}</text>
									<text v-if="attr_params.key">{{attr_params.value}}</text>
								</view>
								<text style="float: right;">x{{items.refund_num}}</text>
							</view>
						</view>
					</view>
					<view class="after-sale-box">
						<view class="need">
							退款金额<span>¥ {{items.refund_price}}</span>
						</view>
						<view class="all">
							退款原因<span>{{items.refund_msg}}</span>
						</view>
						<view class="all">
							问题描述<span>{{items.refund_desc}}</span>
						</view>
						<view class="imgList">
							<view v-for="(images,index) in items.refund_img" @click="preview(index,items.refund_img)">
								<image class="imagePath" :src="images.image_path" mode=""></image>
							</view>
						</view>
						<view class="all" v-if="orderdetail.status===2">
							<text class="refuseMsg">拒绝原因:</text>
							<span>{{orderdetail.refund_cancel_msg}}</span>
						</view>
					</view>
				</view>
			</view>

			<!-- 订单信息 -->
			<view class="orderInfo">
				<h3>退款信息</h3>
				<view class="top">
					<view class="item">
						申请单号<view class="txt">{{orderdetail.after_sale_id}}<span
								@click="copy(orderdetail.after_sale_id)">复制</span></view>
					</view>
					<view class="item">
						订单编号<view class="txt">{{orderdetail.order_code}}</view>
					</view>
					<view class="item">
						申请时间<view class="txt">{{orderdetail.create_time}}</view>
					</view>
				</view>
			</view>
			<!-- 按钮 -->
			<view class="btn">
				<view class="btn_item" @click="subLogistics" v-if="orderdetail.status===1 && orderdetail.refund_type===3 && disabled!=true">提交单号</view>
				<view class="btn_item" @click="resubmit(orderdetail.order_code,orderdetail.refund_type)" v-if="orderdetail.status===2  && disabled!=true">重新提交</view>
				<!-- #ifndef MP-WEIXIN -->
				<view class="btn_item" @click="gitchat()">联系商家</view>
				<!-- #endif -->
				<!-- #ifdef MP-WEIXIN -->
				<view class="btn_item" @click="gitchat()" v-if="!config_id && !config_url">联系商家</view>
				<view class="btn_item" v-else @click="gitpouchatshow">联系商家</view>
				<!-- #endif -->
				<view class="btn_item btn-cancel" v-if="orderdetail.progress_status!=3 && orderdetail.progress_status!=2" @click="cancelOrder(orderdetail.after_sale_id)">撤销申请</view>
			</view>
		</view>
		<!-- 微信客服 -->
		<view class="pouchat" v-if="pouchatshow">
			<view class="poucont">
				<view class="chatlist">
					<view class="chatml" @click="gitwxchat()" v-if="config_url">
						<image src="https://manager.ryz1620.com/static/my/wxchat.png" mode="widthFix"></image>
						<text class="t1">在线微信客服</text>
						<text class="t2">可直接联系客服</text>
					</view>
					<view class="chatml" v-if="config_id">
						<cell class="cell-service" bind:startmessage='startmessage'
							bind:completemessage="completemessage" :plugid="config_id" />
						<image src="https://manager.ryz1620.com/static/my/codechat.png" mode="widthFix"></image>
						<text class="t1">添加微信客服</text>
						<text class="t2">扫微信二维码</text>
					</view>
				</view>
				<view class="iconfont icon-close" @click="wxCodeClick"></view>
			</view>
		</view>
	</view>
</template>

<script>
	import countdown from "@/components/cz-countdown/cz-countdown.vue"
	import uniSteps from '@/pages_mall/pages/mall/after_sale/components/uni-steps/uni-steps.vue'
	import service_mall from '@/service/mall.js'
	import afterSale from '@/service/afterSale.js'
	const qrCode = require('@/utils/weapp-qrcode.js')
	export default {
		components: {
			countdown,
			// #ifdef MP-WEIXIN
			"cell": "plugin://contactPlugin/cell",
			// #endif
			uniSteps
		},
		data() {
			return {
				navBackground: '',
				baseImg: 'http://manager.ryz1620.com',
				navHeight: 200,
				startTime: '',
				enTime: '',
				status: {
					0: "待处理",
					1: "进行中",
					2: "已完成",
					3: "已关闭",
				},
				orderdetail: {},
				tapIndex: '',
				code: '',
				showModal: false,
				terminal: "",
				config_id: '',
				config_url: '',
				pouchatshow: false,
				processList: [{
					title: '提交商品'
				}, {
					title: '寄回商品'
				}, {
					title: '退款成功'
				}, ],
				logisticsList: [],
				logisticsArray:[],
				express_index: 0,
				after_sale_id: '',
				refundItems: [], //退款商品
				orderInfo: {}, //订单详情
				steps_status: 0,
				logi_code:'',//物流公司id
				logi_no:'',//填写的快递单号
				disabled:false,
			}
		},
		filters: {
			formatDates(value) {
				let date = new Date(parseInt(value) * 1000);
				let y = date.getFullYear();
				let m = date.getMonth() + 1;
				m = m < 10 ? "0" + m : m;
				let d = date.getDate();
				d = d < 10 ? "0" + d : d;
				let h = date.getHours();
				h = h < 10 ? "0" + h : h;
				let minute = date.getMinutes();
				let second = date.getSeconds();
				minute = minute < 10 ? "0" + minute : minute;
				second = second < 10 ? "0" + second : second;
				return y + "-" + m + "-" + d + " " + h + ":" + minute + ":" + second;
			},
			formatDate(value) {
				var date = new Date(value);
				//date.setTime(value);
				var month = date.getMonth() + 1;
				var hours = date.getHours();
				if (hours < 10)
					hours = "0" + hours;
				var minutes = date.getMinutes();
				if (minutes < 10)
					minutes = "0" + minutes;
				var time = date.getFullYear() + "/" + month + "/" + date.getDate() +
					" " + hours + ":" + minutes;
				return time;
			}
		},
		onLoad(options) {
			this.$utils.getUrl()
			this.navHeight = 402 - (Number(this.$store.state.system.navBarHeight) * 2)
			this.after_sale_id = options.afterSale_id
			this.getdata();
			//#ifdef MP-WEIXIN
			this.terminal = "wxapplet";
			//#endif
		},
		methods: {
			copy(value) {
				uni.setClipboardData({
					data: value, //要被复制的内容
					success: () => { //复制成功的回调函数
						console.log('复制成功')
					}
				});
			},
			// 订单详情
			getdata() {
				uni.showLoading()
				afterSale.getDetails({
						after_sale_id: this.after_sale_id,
						user_id: uni.getStorageSync('userId')
					})
					.then(res => {
						uni.hideLoading()
						if (res.code == 1) {
							let endata = res.data.create_time + 86340
							this.startTime = this.$options.filters.formatDate(new Date())
							this.enTime = this.$options.filters.formatDates(endata)
							this.orderdetail = res.data
							this.refundItems = res.data.refundItems
							let data = res.data;
							this.logi_no=data.reship.logi_no?data.reship.logi_no:'';
							this.logi_code=data.reship.logi_code?data.reship.logi_code:'';
							if(data.reship.logi_no && data.reship.logi_no!=null){
								this.disabled=true;
							}
							if (data.refund_type === 3 && data.status === 1) {
								if (data.reship.status == 1) {
									this.steps_status = 0
								} else if (data.reship.status == 2) {
									this.steps_status = 1
								} else if (data.reship.status == 3) {
									this.steps_status = 2
								}
							}
							this.gitConfig()
							this.gitwxConfig()
							this.getLogistics();//物流公司
						}
					})
					.catch(err => {
						uni.hideLoading()
					})
			},
			// 获取企业微信callme配置
			gitConfig() {
				service_mall.getCallMeConfig({
					partner_type: 'shop',
					partner_id: this.orderdetail.store_id
				}).then(res => {
					if (res.code == 1) {
						this.config_id = res.data.config_id;
					}
				});
			},
			gitwxConfig() {
				service_mall.getwxMeConfig({
					partner_type: 'shop',
					partner_id: this.orderdetail.store_id
				}).then(res => {
					if (res.code == 1) {
						this.config_url = res.data.url;
					}
				});
			},
			gitpouchatshow() {
				this.pouchatshow = true
			},
			wxCodeClick() {
				this.pouchatshow = false
			},
			gitwxchat() {
				wx.openCustomerServiceChat({
					extInfo: {
						url: this.config_url
					},
					corpId: this.$env.CORPID,
					success(res) {}
				})
			},
			gitchat() {
				uni.showToast({
					title: '哎呀!不好意思，暂未配置客服...',
					icon: 'none',
					duration: 2000
				});
				// uni.navigateTo({
				// 	url: '/pages_customer/pages/index?partner_type=shop&partner_id=' + this.orderdetail.store_id
				// })
			},
			initQrCode: function() {
				new qrCode('myQrcode', {
					text: this.code,
					width: 160,
					height: 160,
					colorDark: "#333333",
					colorLight: "#FFFFFF",
					correctLevel: qrCode.CorrectLevel.H
				})
			},
			handleHideCodeClick: function() {
				this.showModal = false
			},
			// 删除订单
			deleteOrder(id) {
				let that = this
				uni.showModal({
					title: "提示！",
					content: "是否删除该订单",
					success: function(i) {
						if (i.confirm) {
							uni.showLoading('正在删除...')
							service_mall.getdelProductOrder({
								order_code: id,
							}).then(res => {
								uni.hideLoading();
								if (res.code == 1) {
									uni.navigateTo({
										url: '/pages_mine/pages/mall/order/list',
									});
								} else {
									uni.showToast({
										title: "删除失败！",
										icon: "none"
									});
								}
							});
						}
					}
				});
			},
			// 取消申请订单
			cancelOrder(id) {
				let that = this
				uni.showModal({
					title: "提示！",
					content: "是否确定取消申请",
					success: function(i) {
						if (i.confirm) {
							afterSale.ordercancel({
							after_sale_id:id,
							user_id: that.$store.state.index.userId,
							}).then(res => {
								if (res.code == 1) {
									that.getdata();
									that.$common.errorToShow(res.msg);
								} else {
									that.$common.errorToShow(res.msg);
								}
							});
						}
					}
				});
			},
			//物流公司
			getLogistics(order_code) {
				uni.showLoading()
				let _this=this;
				let logi_no=_this.logi_no;
				let logi_code=_this.logi_code;
				afterSale.logistics({})
					.then(res => {
						uni.hideLoading()
						if (res.code == 1) {
							let data = res.data;
							var result = ['请选择物流公司'];
							for (var i = 0; i < data.length; i++) {
								if(logi_no){
									if(data[i].express_id==logi_code){
										_this.express_index=i+1;
									}
								}
								result.push(data[i].express_name);
							}
							_this.logisticsList = result;
							_this.logisticsArray=data;
						}
					})
					.catch(err => {
						uni.hideLoading()
					})
			},
			preview(index, urls) {
				let img_url = [];
				for (let i = 0; i < urls.length; i++) {
					img_url.push(urls[i].image_path);
				}
				uni.previewImage({
					urls: img_url,
					current: index,
					success: function(data) {
						console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
					},
					fail: function(err) {
						console.log(err.errMsg);
					}
				});
			},
			//提交物流单号
			subLogistics(){
				if(!this.logi_no){
					this.$common.errorToShow('请填写快递单号');
					return false;
				}
				if(!this.logi_code){
					this.$common.errorToShow('请选择物流公司');
					return false;
				}
				uni.showLoading()
				afterSale.subLogistics({
					user_id:uni.getStorageSync('userId'),
					reship_id:this.orderdetail.reship.reship_id,
					logi_no:this.logi_no,//快递单号
					logi_code:this.logi_code,
				})
					.then(res => {
						uni.hideLoading()
						if (res.code == 1) {
							let data = res.data;
							this.getdata();
							this.$common.errorToShow(res.msg);
						}else{
							this.$common.errorToShow(res.msg);
						}
					})
					.catch(err => {
						uni.hideLoading()
					})
			},
			//选择的物流公司
			bindPickerChange(e){
				 console.log('picker发送选择改变，携带值为', e.target.value)
				 this.express_index = e.target.value;
				 let data=this.logisticsArray;
				 for(var i=0; i<data.length;i++){
					 if(e.target.value==i+1){
						 this.logi_code=data[i].express_id;
					 }
				 } 
			},
			resubmit(order_code,type){
				uni.navigateTo({
					url: '/pages_mall/pages/mall/after_sale/refundGoods?type='+type+'&order_code='+order_code,
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.icon-more {
		display: inline-block;
	}

	.paidDetail {
		width: 100%;

		.topImg {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 468rpx;

			image {
				width: 100%;
				height: 100%;
			}

			.time {
				padding: 0 44rpx;
				position: absolute;
				bottom: 178rpx;
				left: 0;
				color: #fff;

				.title {
					display: flex;
					align-items: center;
					margin-bottom: 8rpx;

					image {
						margin-right: 16rpx;
						width: 40rpx;
						height: 40rpx;
						border-radius: 50%;
					}

					font: 500 36rpx/36rpx PingFang SC;
				}

				.onlyTime {
					font: 400 26rpx/36rpx PingFang SC;
					margin-top: 25rpx;
				}
			}

			// 头部信息
			.siteinfo {
				width: 100%;
				position: absolute;
				left: 0;
				bottom: -34rpx;
				z-index: 200;

				.infoItem {
					padding: 20rpx 24rpx;
					display: flex;
					justify-content: space-between;
					margin: 0 auto;
					width: 702rpx;
					height: 148rpx;
					background-color: #fff;
					border-radius: 16rpx;

					image {
						width: 40rpx;
						height: 40rpx;
					}

					.left {
						display: flex;

						.call {
							margin: 0 20rpx 0 24rpx;
							display: flex;
							flex-direction: column;

							.info {
								margin-bottom: 4rpx;
								display: flex;
								color: #0A0605;
								font: 500 26rpx/40rpx PingFang SC;

								text {
									color: #CC2F27;
									// padding: 0rpx 12rpx;
									border-radius: 18rpx;
									background-color: #F5F6F6;
									font: 400 22rpx/40rpx PingFang SC;
								}
							}

						}
					}
				}
			}
		}

		// 内容
		.content {
			padding: 126rpx 24rpx 0;
			margin-bottom: 116rpx;
			padding-bottom: 120rpx;
			position: relative;
			z-index: 200;

			.process {
				margin: 0 0 18rpx 0;
			}

			.summary {
				margin-top: 84rpx;
				padding: 20rpx 24rpx;

				.title {
					font-weight: bold;
					color: #0E0A09;
					margin-bottom: 20rpx;
				}

				.describe {
					color: #3B3B3B;
					height: 42rpx;
					font-size: 22rpx;
					width: 100%;
					display: flex;
					align-items: baseline;

					.back-dot {
						width: 16rpx;
						margin-right: 10rpx;
						height: 16rpx;
						background-color: #C3AB7C;
						border-radius: 50%;
					}
				}
			}

			.logistics {
				margin-top: 20rpx;

				.infoItem {
					padding: 28rpx 24rpx;
					display: flex;
					justify-content: space-between;
					margin: 0 auto;
					width: 702rpx;
					height: 188rpx;
					background-color: #fff;
					border-radius: 16rpx;

					image {
						width: 40rpx;
						height: 38rpx;
					}

					.left {
						display: flex;

						.call {
							margin: 0 20rpx 0 24rpx;
							display: flex;
							flex-direction: column;

							.info {
								margin-bottom: 20rpx;
								display: flex;
								color: #0A0605;
								font: 500 26rpx/40rpx PingFang SC;

								span {
									margin-left: 16rpx;
									padding: 0rpx 12rpx;
									border-radius: 18rpx;
									background-color: #F5F6F6;
									font: 400 18rpx/40rpx PingFang SC;
								}
							}

							.address {
								color: #505050;
								font: 400 26rpx/40rpx PingFang SC;
							}
						}
					}
				}
			}

			.logistics-form {
				padding: 28rpx 24rpx;

				.uni-list-cell-db {
					display: flex;
					align-items: baseline;
					margin-bottom: 58rpx;

					picker {
						margin: 0 4rpx 0 auto;
					}

					.icon-more {
						position: absolute;
						right: 24rpx;
						margin-top: 6rpx;
					}
				}

				.list-cell-title {
					width: 290rpx;
					height: 35rpx;
					font-size: 26rpx;
					font-weight: 500;
					color: #3D3D3D;
				}

				.list-form {
					input {
						margin-top: 20rpx;
						font-size: 24rpx;
						text-indent: 20rpx;
					}

					.placeholder-input {
						font-size: 22rpx;
					}
				}
			}

			// 商品清单
			.shopList {
				background-color: #fff;
				padding: 28rpx;
				border-radius: 16rpx;

				h3 {
					padding-bottom: 28rpx;
					font: 500 30rpx/40rpx PingFang SC;
					color: #0A0605;
				}

				.list {
					.item {
						display: flex;
						margin-bottom: 32rpx;

						image {
							width: 148rpx;
							height: 148rpx;
							border-radius: 8RPX;
						}

						.shopInfo {
							width: 478rpx;
							margin-left: 24rpx;
							display: flex;
							flex-direction: column;

							.top {
								color: #505050;
								font: 400 26rpx/40rpx PingFang SC;

								.tit {
									width: 328rpx;
								}

								display: flex;
								justify-content: space-between;
							}

							.spec {
								margin-top: 40rpx;
								color: #A0A0A0;
								font: 400 22rpx/22rpx PingFang SC;
							}
						}
					}
				}

				// 商品售后说明
				.after-sale-box {
					padding-top: 32rpx;
					border-top: 2rpx solid #F5F5F5;
					margin-bottom: 82rpx;

					view {
						display: flex;
						justify-content: space-between;
					}

					.all {
						padding: 10rpx 0;
						font: 400 26rpx/40rpx PingFang SC;
						color: #505050;
					}
                    .refuseMsg{
                    	width:218rpx;
                    }
					.need {
						padding: 10rpx 0;
						font: 500 26rpx/40rpx PingFang SC;
						color: #0A0605;

						span {
							color: #DBA954;
						}
					}

					.imgList {
						display: grid;
						grid-template-columns: repeat(4, 190rpx);
						grid-gap: 0rpx;

						.imagePath {
							width: 160rpx !important;
							height: 160rpx !important;
							border-radius: 8rpx;
						}
					}
				}
			}

			// 订单信息
			.orderInfo {
				margin-top: 24rpx;
				background-color: #fff;
				padding: 28rpx;
				border-radius: 16rpx;

				h3 {
					font: 500 30rpx/40rpx PingFang SC;
					color: #0A0605;
				}

				.top {
					padding: 28rpx 0 0;
					margin-bottom: 24rpx;
					border-bottom: 2rpx solid #f5f5f5;

					.item {
						font: 400 26rpx/40rpx PingFang SC;
						color: #A0A0A0;
						display: flex;
						margin-bottom: 24rpx;
						align-items: center;

						.txt {
							display: flex;
							color: #505050;
							margin-left: 32rpx;

							span {
								margin-left: 18rpx;
								padding: 0 14rpx;
								border-radius: 18rpx;
								color: #DBA954;
								font: 400 18rpx/40rpx PingFang SC;
								background-color: rgba(219, 169, 84, 0.1);
							}
						}
					}
				}

				.bottom {
					font: 400 26rpx/40rpx PingFang SC;
					color: #A0A0A0;
					display: flex;
					align-items: center;

					span {
						margin-left: 32rpx;
						color: #505050;
					}
				}
			}
		}

		// 按钮
		.btn {
			width: 100%;
			height: 92rpx;
			background-color: #fff;
			position: fixed;
			bottom: 0;
			left: 0;
			display: flex;
			justify-content: flex-end;
			padding: 0 24rpx;
			height: calc(92rpx+ constant(safe-area-inset-bottom));
			height: calc(92rpx + env(safe-area-inset-bottom));
			padding-bottom: constant(safe-area-inset-bottom);
			padding-bottom: env(safe-area-inset-bottom);

			.btn_item {
				width: 154rpx;
				height: 56rpx;
				border-radius: 28rpx;
				border: 2rpx solid #505050;
				font: 400 24rpx/56rpx PingFang SC;
				color: #505050;
				text-align: center;
				margin: 18rpx 0 18rpx 20rpx;
				position: relative;

				.cell-service {
					position: absolute;
					right: 0;
					bottom: 0;
					left: 0;
					top: 0;
					opacity: 0;
				}
			}
			.btn-cancel{
				border: 1px solid #C3AB7C;
				border-radius: 28px;			
				color: #C3AB7C;
			}
		}
	}

	// 客服弹框
	.pouchat {
		position: fixed;
		background: rgba(0, 0, 0, 0.5);
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 9999;

		.poucont {
			position: absolute;
			top: 30%;
			left: 15%;
			right: 15%;

			.icon-close {
				width: 80rpx;
				height: 80rpx;
				font-size: 70rpx;
				color: #fff;
				line-height: 80rpx;
				text-align: center;
				margin: 30rpx auto;
			}
		}

		.chatlist {
			background: #fff;
			padding: 30rpx;
			border-radius: 10rpx;
		}

		.chatml {
			position: relative;
			padding: 20rpx;
			padding-left: 100rpx;
			min-height: 100rpx;

			.cell-service {
				position: absolute;
				right: 0;
				bottom: 0;
				left: 0;
				top: 0;
				opacity: 0;
			}

			text {
				display: block;
				line-height: 40rpx;
			}

			.t1 {
				font-size: 32rpx;
			}

			.t2 {
				font-size: 24rpx;
				color: #999;
			}

			image {
				width: 70rpx;
				height: 70rpx;
				position: absolute;
				left: 15rpx;
				top: 25rpx;
			}
		}
	}
</style>
